cmake_minimum_required(VERSION 3.17)
project(httpserver)

set(CMAKE_CXX_STANDARD 14)
set(
        SOURCES
        src/mime_types.cpp # ok
        src/reply.cpp # ok
        src/request_parser.cpp # ok
        src/request_handler.cpp # ok
        src/connection.cpp # ok
        src/connection_manager.cpp # ok
        src/server.cpp # ok
        src/main.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME}
        PRIVATE  ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(${PROJECT_NAME} pthread )